<template>
  <div id="app">
    <header>
      <div class="portrait">
        <img src="../../../assets/images/portrait.png" alt="">
      </div>
      <h4>普通用户</h4>
    </header>
    <ul class="title" v-show="false">
      <li>今日开户</li>
      <li>今日收益</li>
      <li>累计收益</li>
    </ul>
    <ul class="title price" v-show="false">
      <li class="baseColor">88/人</li>
      <li class="baseColor">¥95652.56</li>
      <li class="baseColor">¥652354.56</li>
    </ul>
    <ul class="title" v-show="false">
      <li>我的朋友</li>
    </ul>
    <ul class="title price" v-show="false">
      <li class="baseColor">88/人</li>
      <li class="baseColor">¥95652.56</li>
      <li class="baseColor">¥652354.56</li>
    </ul>
    <a class="btn" v-show="false">我要推广</a>
    <div class="ewm">
      <img src="../../../assets/images/ewm.png" alt="">
      <p>( 扫一扫或长按二维码识别 )</p>
    </div>
    <a class="btn">用户推荐码：8965748</a>
    <div class="mask" v-show="false">
      <div>
        <h1>推广功能所需条件</h1>
        <ul>
          <li>推荐码 <span>填写</span></li>
          <li>实名认证 <span>实名</span></li>
        </ul>
        <a>立即开通</a>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "agent",
    beforeCreate() {
      document.querySelector('body').setAttribute('style', 'background-color:#f3f3f3')
    },
    beforeDestroy() {
      document.querySelector('body').removeAttribute('style')
    }
  }
</script>

<style lang="less" scoped>
  #app {
    header {
      height: 9rem;
      background: #ff9500;
      box-sizing: border-box;
      padding: 1.36rem 0.5rem 0;
      .portrait {
        border-radius: 50%;
        width: 2.794rem;
        margin: 1.2rem auto 0rem;
      }
      h4 {
        font-size: 0.64rem;
        text-align: center;
        color: #fff;
        font-weight: normal;
        line-height: 1.8rem;
      }
    }
    .title {
      margin: 0.5rem 0.5rem 0;
      display: flex;
      background: #fff;
      li {
        flex: 1;
        text-align: center;
        font-size: 0.597rem;
        line-height: 3.3rem;
      }
    }
    .price {
      border-top: 1px solid #dcdcdc;
      margin-top: 0;
    }
    .btn {
      margin: 1rem 0.5rem;
      line-height: 1.85rem;
    }
    .ewm {
      text-align: center;
      background: #fff;
      padding: 2.56rem 3.8rem;
      margin: 0.5rem;
      img {
        width: 5.54rem;
        margin: 0 auto;
      }
      p {
        font-size: 0.597rem;
        margin-top: 0.2rem;
      }
    }
    .mask {
      position: fixed;
      top: 0;
      left: 0;
      background: rgba(0, 0, 0, .5);
      width: 100%;
      height: 100%;
      div {
        background: #fff;
        width: 12rem;
        height: 8.5rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding-top: 0.3rem;
        border-radius: 10px;
        h1 {
          text-align: center;
          font-size: 0.725rem;
          line-height: 2rem;
          font-weight: 400;
        }
        ul {
          padding:0  1rem;
          li {
            font-size: 0.554rem;
            line-height: 1.9rem;
            span {
              font-size: 0.469rem;
              float: right;
              width: 2.77rem;
              height: 1rem;
              border: 1px solid #ff9500;
              border-radius: 5px;
              text-align: center;
              line-height: 1rem;
              color: #ff9500;
              margin-top: 0.39rem;
            }

          }
        }
        a {
          font-size: 0.64rem;
          display: block;
          text-align: center;
          border-top: 1px solid #dcdcdc;
          line-height: 2rem;
          margin-top: 0.7rem;
          color: #8e8e93;
        }
      }
    }
  }
</style>
